package my_web.Interface;
import java.util.List;
import my_web.bean.Emp;
import my_web.bean.Leave;
import my_web.model.LeaveDto;
import my_web.page.Page;
import my_web.page.PageParam;
public interface LeaveInterface {
	List<Leave> getAllLeaves();
	Page getLeavePage(PageParam pageParam);
	void addLeave(LeaveDto dto);
	void removeLeaveById(String qj_id);
	Leave getLeaveById(String qj_id);
	void modifyLeave(LeaveDto dto);
	void removeLeavesById(String[] qj_ids);
	Page DynamicQueryAllLeaves(LeaveDto dto);
	Page QueryAllSubmitedLeaves(LeaveDto dto);
	Object QueryAllCheckedLeaves(LeaveDto dto);
	void modifyLeaveStateToSubmited(String qj_id);
	void modifyLeaveStateToAgree(String qj_id, String sp_r);
	void modifyLeaveStateToDisagree(String qj_id, String sp_r);
	int modifyLeaveToRecord(String qj_id, String ba_r);
	Object DynamicQueryAllLeaves(LeaveDto dto, Emp emp);
	Object QueryAllSubmitedLeaves(LeaveDto dto, Emp emp);
}